﻿using System;

namespace 解释器模式_Message
{
    /// <summary>
    /// Message实体类
    /// </summary>
    public class MessageModel
    {

        public string Message { get; set; }
        public DateTime PublishTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="msg">Message的内容</param>
        /// <param name="pt">Messag发布时间</param>
        public MessageModel(string msg, DateTime pt)
        {
            Message = msg;
            PublishTime = pt;
        }
    }
}
